package team.yidong.fenda.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;
import team.yidong.fenda.entity.HospitalDepartment;

import java.util.List;

/**
 * Created by xuanlong on 2018/3/17.
 */
@Repository
public interface HospitalDepartmentRepository extends JpaRepository<HospitalDepartment, Integer>, JpaSpecificationExecutor<HospitalDepartment> {
    List<HospitalDepartment> findByHospitalId(Integer hospitalId);
}
